package com.easa.service;

import com.easa.dao.LaboratorymsgDao;
import com.easa.entity.Laboratorymsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LaboratorymsgServiceImpl implements LaboratorymsgService{


    @Autowired
    private LaboratorymsgDao laboratorymsgDao;

    public List<Laboratorymsg> findAllLaboratorymsg(){
        return laboratorymsgDao.findAllLaboratorymsg();
    }

    public List<Laboratorymsg> getLaboratoryMsg(String lname){
        return laboratorymsgDao.getLaboratoryMsg(lname);
    }

    public Laboratorymsg getLaboratoryByLid(int lid){
        return laboratorymsgDao.getLaboratoryByLid(lid);
    }

    public boolean updateLaboratory(Laboratorymsg laboratorymsg){
        return laboratorymsgDao.updateLaboratory(laboratorymsg);
    }

    public boolean addLaboratory(Laboratorymsg laboratorymsg){
        return laboratorymsgDao.addLaboratory(laboratorymsg);
    }
}
